@import '../_variables.scss';
.loading {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: $zIndex-loading-lv1;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    &:after {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        z-index: $zIndex-loading-base;
        display: block;
        content: ' ';
        background-color: rgba($color: #000, $alpha: 0.8);
    }
    .loading-text {
        position: relative;
        z-index: $zIndex-loading-lv3;
        font-size: 18px;
        color: #fff;
        margin-top: 5px;
    }
    .loading-timer {
        width: 44px;
        height: 44px;
        background-color: transparent;
        box-shadow: inset 0px 0px 0px 2px #fff;
        border-radius: 50%;
        position: relative;
        z-index: $zIndex-loading-lv2;
        &:before,
        &:after {
            position: absolute;
            content: "";
            background-color: #fff;
        }
        &:before {
            width: 12px;
            height: 2px;
            top: 22px;
            left: 22px;
            transform-origin: 1px 1px;
            animation: hrhand 8s linear infinite;
        }
        &:after {
            width: 18px;
            height: 2px;
            top: 22px;
            left: 22px;
            transform-origin: 1px 1px;
            animation: minhand 2s linear infinite;
        }
    }
}

@keyframes minhand {
    0% {
        -webkit-transform: rotate(0deg)
    }
    100% {
        -webkit-transform: rotate(360deg)
    }
}

@keyframes hrhand {
    0% {
        transform: rotate(0deg)
    }
    100% {
        transform: rotate(360deg)
    }
}